home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zoom 2
/
Zoom - Release 2 (1996)(Active Software)[!].iso
/
texts
/
dosman121
/
man
/
run
< prev
next >
Wrap
Text File
|
1995-04-03
|
3KB
|
82 lines
Run (V1.3 in c:) (2.x/3.x internal)
NAME
Run - spawn a background shell or process.
SYNOPSIS
Run command+command+command+command....
DESCRIPTION
Run is used to startup a background shell. Run
itself does no parsing of the command line, it passes it
unchanged to the background shell process, which means
that depending on the shell you have loaded, you can do
various interesting things with Run.
You can pass multiple commands to the background
shell by terminating each commandline with a '+' before
you hit return.
To detach processes from the parent console window,
you can do Run >NIL:. This will allow you to close the
CLI window from which that task was launched. Once RUN a
program is totally seperated from the Shell from which it
was RUN allowing you to use that Shell for other
purposes. If any errors occur, the background program
removes itself and disappears.
After you RUN a program, the system shell will print
the message [CLI n] where n is the task number assigned
to the background task.
The system will always check the resident list before
looking in the system path for the command.
EXAMPLES
1. Run Copy Thisfile OverHere+
Echo "Copy complete!"
The above line will cause the background shell to
first run the Copy command, and then the Echo command.
2. RUN EXECUTE "RAM:T/ThisFile"
The above line will cause the command sequence file
'ThisFile' in the Ram:T/ directory to execute in the
background by a single task.
3. RUN DIR > PRT: OPT A
This prints a directory and file listing of the
current drive on the printer. This will be operated in
the background so you will be able to continue entering
other commands into the Shell it was run from or to close
it.
4. RUN >NIL: Calculator
This starts the Calculator program. NIL: is used so
you can close the CLI or enter other commands into it
while the Calculator is running.
5. RUN FORMAT DRIVE DF1: NAME EMPTY +
INSTALL DF1: +
ECHO "Format and Install Finished"
This will Format and Install a disk in df1: and then
print a message saying "Format and Install Finished".